﻿// JScript 文件
function DisplayFanQuanDetail(id)
{
    //alert(id);
    var lin = document.getElementById(id);
    lin.style.display="block";	
}

function HiddenFanQuanDetail(id)
{
    var lin = document.getElementById(id);
    lin.style.display="none";	
}

function JsOpenwinDetail(Id,parameters,type,receiver_city_id,order_type)
{

    var lin =  document.getElementById("tag_box");
    var sta = parameters.split(":");
    lin.innerHTML = callBackJSDetail(sta[0],sta[1],sta[2],sta[3],receiver_city_id,order_type);

    var pos = getPosition(document.getElementById(Id));

    new dragObject(lin, "handle", null, null, null, null, null, false);
     
    lin.style.left= pos.x - 150  + "px";
    lin.style.top = pos.y + "px";			
    lin.style.display="block";	
  

}

function callBackJSDetail(orderid,sStartD,indate,succeed_order_num,receiver_city_id,order_type)
{

    var sb = new StringBuilder('<div  id="e1"  class="myddorder_popup_wrap">');      
    sb.append(' <div  id="handle" class="myddorder_popup myddorder_calendar">');    
    sb.append(' <div class="myddorder_popup_title">');    
     sb.append(' <h2>订单 ',orderid,' 收货反馈<\/h2><a href=javascript:hidden(); class="close" title="关闭">关闭<\/a>');    
    sb.append('<\/div>');
    
    
    
    sb.append('<div class="myddorder_popup_main">');
    if(order_type==51)
    {
       sb.append('<p class="feedback_title">感谢您在当当网购物！您的反馈将用以改善我们的服务。（完成反馈可获得5个积分）<\/p>');  
       sb.append('<p><b>温馨提示：收货反馈后订单中礼品卡将生效！</b><\/p>');
       sb.append('<p><b>请在收到礼品卡后进行收货反馈，避免遭受损失。</b><\/p>');
    }
    else
        sb.append('<p class="feedback_title">感谢您在当当网购物！您的反馈将用以改善我们的服务。（完成反馈可获得5个积分）<\/p>');
    sb.append('<p class="text01"><span>请选择收货日期：<\/span><input onclick=javascript:showCalendar("alendar",false,"InDate",null,null,"',sStartD,'","',indate,'"); id="InDate" type="text" value="',indate,'" \/><a href=javascript:showCalendar("alendar",false,"InDate",null,null,"',sStartD,'","',indate,'"); target="_self" onMouseOut=window.status=""; onMouseOver=window.status="Calendar";return true;><span id="alendar">date<\/span><\/a>  <\/p>');
    sb.append('<p><span></span></p>');
    /*
    sb.append('<p><span>送货速度：<\/span>');    
    sb.append('<span id="img_speed_5" onclick="chk_speed(5)" onmousemove ="onmovechangestar_speed(5)" class="off"><\/span>');    
    sb.append('<span id="img_speed_4" onclick="chk_speed(4)" onmousemove ="onmovechangestar_speed(4)" class="off"><\/span>');
    sb.append('<span id="img_speed_3" onclick="chk_speed(3)" onmousemove ="onmovechangestar_speed(3)" class="off"><\/span>');
    sb.append('<span id="img_speed_2" onclick="chk_speed(2)" onmousemove ="onmovechangestar_speed(2)" class="off"><\/span>');
    sb.append('<span id="img_speed_1" onclick="chk_speed(1)" onmousemove ="onmovechangestar_speed(1)" class="off"><\/span>');
    sb.append('<span id="div_speed_info"><\/span><input type="hidden" value="0" id="input_speed" name="input_speed"\/><\/p>');
    
    sb.append(' <p><span>送货员的服务态度：<\/span><span id="img_score_5" onclick="chk_sock(5)" onmousemove ="onmovechangestar(5)" class="off"><\/span>');
    sb.append('<span id="img_score_4" onclick="chk_sock(4)" onmousemove ="onmovechangestar(4)" class="off"><\/span>');
    sb.append('<span id="img_score_3" onclick="chk_sock(3)" onmousemove ="onmovechangestar(3)" class="off"><\/span>');
    sb.append('<span id="img_score_2" onclick="chk_sock(2)" onmousemove ="onmovechangestar(2)" class="off"><\/span>');
    sb.append('<span  id="img_score_1" onclick="chk_sock(1)" onmousemove ="onmovechangestar(1)"  class="off"><\/span>');
    sb.append(' <span  id="div_score_info"><\/span><input type="hidden" value="0" id="input_score" name="input_score"\/><\/p> ');
    
    
     sb.append('<p><span>商品外包装：<\/span>');
     sb.append('<span id="img_package_5" onclick="chk_sock_package(5)" onmousemove ="onmovechangestar_package(5)" class="off"><\/span>');
     sb.append('<span id="img_package_4" onclick="chk_sock_package(4)" onmousemove ="onmovechangestar_package(4)" class="off"><\/span>');
     sb.append('<span id="img_package_3" onclick="chk_sock_package(3)" onmousemove ="onmovechangestar_package(3)" class="off"><\/span>');
     sb.append('<span id="img_package_2" onclick="chk_sock_package(2)" onmousemove ="onmovechangestar_package(2)" class="off"><\/span>');
     sb.append('<span id="img_package_1" onclick="chk_sock_package(1)" onmousemove ="onmovechangestar_package(1)" class="off"><\/span>');
     sb.append(' <span  id="div_package_info"><\/span><input type="hidden" value="0" id="input_package" name="input_score"\/><\/p> ');
    sb.append('<p class="text02"><span>其他意见建议：<\/span><textarea name="" id="receive_review_content" onclick="shownull()" onblur="showword()"  maxLength="200">最多允许输入200个汉字<\/textarea><span class="hint" id="receive_input_warn" style="visibility:hidden">字数超过200字，请重新填写。<\/span><\/p>');
    */
    sb.append('<div class="clear"><\/div>');
    sb.append(' <div class="myddorder_popup_btn"><button name="submit" onclick="javascritpt:postDateDetail(\'',orderid,'\',\'',succeed_order_num,'\',\'',receiver_city_id,'\');">提 交<\/button><\/div>');
    sb.append('<\/div> ');
    sb.append('<\/div>');
    sb.append('<\/div>');
        
    return sb.getString();


}

function postDateDetail(Id,succeed_order_num,receiver_city_id)
{
   var speed="0";
  var attitude="0";
  var package_quality="0";
  var other_review="0";
  
  /*
  if(document.getElementById("input_speed").value!="0")
  {
      switch(document.getElementById("input_speed").value)
      {
        case "5":  //非常差、挺差、一般、还好吧、很好
        speed="1";
        break;
         case "4":  //非常差、挺差、一般、还好吧、很好
        speed="2";
        break;
         case "3":  //非常差、挺差、一般、还好吧、很好
        speed="3";
        break;
         case "2":  //非常差、挺差、一般、还好吧、很好
        speed="4";
        break;
         case "1":  //非常差、挺差、一般、还好吧、很好
        speed="5";
        break;
        default:
        speed="0";
        break;        
      }
  }
  
  if(document.getElementById("input_score").value!="0")
  {
      switch(document.getElementById("input_score").value)
      {
        case "5":  //非常差、挺差、一般、还好吧、很好
        attitude="1";
        break;
         case "4":  //非常差、挺差、一般、还好吧、很好
        attitude="2";
        break;
         case "3":  //非常差、挺差、一般、还好吧、很好
        attitude="3";
        break;
         case "2":  //非常差、挺差、一般、还好吧、很好
        attitude="4";
        break;
         case "1":  //非常差、挺差、一般、还好吧、很好
        attitude="5";
        break;
        default:
        attitude="0";
        break;        
      }
  }
  
  //alert("taidu"+attitude);
  
    if(document.getElementById("input_package").value!="0")
    {
         switch(document.getElementById("input_package").value)
          {
            case "5": //非常不满意、不满意、一般、满意、非常满意
            package_quality="1";
            break;
             case "4":  
            package_quality="2";
            break;
             case "3":  
            package_quality="3";
            break;
             case "2": 
            package_quality="4";
            break;
             case "1": 
            package_quality="5";
            break;
            default:
            package_quality="0";
            break;        
          }    
    
    }
    
   // alert("baozhuang"+package_quality);  
  
  if(document.getElementById("receive_review_content").value==""||document.getElementById("receive_review_content").value=="最多允许输入200个汉字")
  {
     other_review="0";   
  }
  else if(document.getElementById("receive_review_content").value.length>200)
    {
      document.getElementById("receive_input_warn").innerHTML="字数超过200字，请重新填写。";      
      document.getElementById("receive_input_warn").style.visibility="visible";   
      
//       other_review=document.getElementById("receive_review_content").value;       
//       alert("文本框内容超过 了 200！");       
//       alert(other_review);      
      return;
    }
    else
    {
       document.getElementById("receive_input_warn").style.visibility="hidden";        
       other_review=document.getElementById("receive_review_content").value.encodeHtml().trim();
//       alert(other_review);       
//       alert("文本框有内容， 内容没有超过 了 200！");
//       return;
    }
    ///
    */
    orderid = Id;   
   
    
    var indate =jQuery("#InDate").val();      

    var outputDataUrl = "./outputData.aspx";

    
    var myurl = outputDataUrl;
         		    
    var pars = "";	   	  
   
//   if(symbol==0)
//   {
   
       //var aAjax = XMLHttp._sendRequest('GET', myurl, '', true, "text/xml", renderFun);
       
       //jquery
     jQuery.get(myurl,{modify:"true",Dtype:"callback",from:"detail",Id:Id,de:indate,num:succeed_order_num,cityid:receiver_city_id,d:new Date(),att:attitude,spe:speed,pac:package_quality,rev:escape(other_review)},
     function(data)
                {
                  
                   var tex = data;	        
                    if(tex == "") return;                    
                    //var lin =  document.getElementById("tag_box");
                    var lin =  jQuery("#tag_box").get(0); 
                    
                    if(tex !="error" && tex !="ok")
                    {
                        //lin.innerHTML = surveyWindow(tex);
                        
                        jQuery(lin).html(surveyWindow_detail_shouhuo(tex));
                        
                        new dragObject(lin, "handle", null, null, null, null, null, false);
                       // loadData('order',comparameters);
                        lin.style.display="block";
                        //windowMoveToCenter();
                        windowMoveToCenterfororderlistsurvey();
                    }
                    else
                    {
                        var repstr ="感谢您的反馈，此订单积分将于15天后记入您的帐户。"
                        if(tex == "error") repstr = "提交失败，请稍候再试！";
                        
                        //lin.innerHTML = callEdJS(orderid,repstr);
                        
                        jQuery(lin).html(callEdJS_detail(orderid,repstr));
                        
                        
                        new dragObject(lin, "handle", null, null, null, null, null, false);  
                        lin.style.display="block";
                        //loadData('order',comparameters);
                    }
                  
                   
                }
     );

}



function surveyWindow_detail_shouhuo(survey_url)
{
    
    var sb = new StringBuilder('<div id="e1" class="new_window1">');    
     sb.append('<div id="handle">');
     sb.append('<\/div>'); 
     sb.append('<iframe   src="',survey_url,'" width="529px" frameborder="0" scrolling="no"   name="survey_frame_detail" id="survey_frame_detail" onload="iFrameHeight_detail()"> </iframe>');
     sb.append('<\/div>');
    
    return sb.getString();
    
    
    //
//      var sb = new StringBuilder('<div id="e1" style="width:330px;">');     
//     sb.append('<div id="handle">');
//     sb.append('<\/div>');    
//     sb.append('<iframe onLoad="iFrameHeight_detail()"    src="',survey_url,'" style="width:330px;" frameborder="0" scrolling="no"   name="survey_frame_detail" id="survey_frame_detail" ></iframe>');
//     sb.append('<\/div>'); 
//    return sb.getString();//  var frm = document.getElementById("survey_frame");   
//    var subWeb = document.frames ? document.frames["survey_frame"].document : frm.contentDocument;   
//    if(frm != null && subWeb != null)
//    {
//        var aa = subWeb.body.scrollHeight;
//       frm.height = subWeb.body.scrollHeight;
//    }   


    
}





function callEdJS_detail(orderid,text)
{
     var sb = new StringBuilder('<div id="e1" class="myddorder_popup_wrap">');
     
     sb.append('<div id="handle" class="myddorder_popup">');
     
      sb.append('<div class="myddorder_popup_title">');
      
      sb.append('<h2>订单 ',orderid,' 收货反馈</h2><a href="javascript:hidden();" class="close" title="关闭">关闭</a>');
      
      sb.append('</div>');
      
      sb.append('<div class="myddorder_popup_main">');
      
      sb.append('<h3 class="icon_success status2"><i></i><span>提交成功</span></h3>');
      sb.append('<p class="tips">温馨提示：此订单的积分将在15天退换货期后计入您的帐户。</p>');
      sb.append('<div class="myddorder_popup_btn"><button  onclick="javascript:hidden_for_detail();refreshBen_ddd();writeProductsComm('+orderid+')" >写评价赚积分</button></div>');
     
     
      sb.append('</div>');
       sb.append('</div>');
        sb.append('</div>');
        
     
     return sb.getString();   


}


function refreshBen_ddd()
{
   window.location.reload();

}
//%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

//call back end


function  writeProductsComm(orderid)
{
  //var  jump_url="http://comm.dangdang.com/shopreview/review_post_success.php?order_id="+orderid+"&ref=order ";
  var  jump_url="http://comm.dangdang.com/review/comment.php?order_id=" + orderid + "&ref=order ";
  window.open (jump_url, '写评价赚积分', 'height=800, width=800, top=0, left=0,toolbar=yes,menubar=yes, scrollbars=yes, resizable=yes,location=yes') ;
}

//收货评价 begin
function JsOpenwinDetail_Evaluation(Id,parameters,type,receiver_city_id,order_type)
{

    var lin =  document.getElementById("tag_box");
    var sta = parameters.split(":");
    lin.innerHTML = callBackJSDetail_Evaluation(sta[0],sta[1],sta[2],sta[3],receiver_city_id,order_type);

    var pos = getPosition(document.getElementById(Id));

    new dragObject(lin, "handle", null, null, null, null, null, false);
     
    lin.style.left= pos.x - 250  + "px";
    lin.style.top = pos.y + "px";			
    lin.style.display="block";	
  

}

function callBackJSDetail_Evaluation(orderid,sStartD,indate,succeed_order_num,receiver_city_id,order_type)
{

    var sb = new StringBuilder('<div  id="e1"  class="myddorder_popup_wrap">');      
    sb.append(' <div  id="handle" class="myddorder_popup myddorder_calendar">');    
    sb.append(' <div class="myddorder_popup_title">');    
     sb.append(' <h2>订单 ',orderid,' 收货反馈<\/h2><a href=javascript:hidden(); class="close" title="关闭">关闭<\/a>');    
    sb.append('<\/div>');
    
    
    
    sb.append('<div class="myddorder_popup_main">');
    if(symbol==51)
    {
       sb.append('<p class="feedback_title">感谢您在当当网购物！您的反馈将用以改善我们的服务。（完成反馈可获得5个积分）<\/p>');  
       sb.append('<p><b>温馨提示：收货反馈后订单中礼品卡将生效！</b><\/p>');
       sb.append('<p><b>请在收到礼品卡后进行收货反馈，避免遭受损失。</b><\/p>');
    }
    else
        sb.append('<p class="feedback_title">感谢您在当当网购物！您的反馈将用以改善我们的服务。（完成反馈可获得5个积分）</b><\/p>');
    sb.append('<p class="text01"><span>请选择收货日期：<\/span><input onclick=javascript:showCalendar("alendar",false,"InDate",null,null,"',sStartD,'","',indate,'"); id="InDate" type="text" value="',indate,'" \/><a href=javascript:showCalendar("alendar",false,"InDate",null,null,"',sStartD,'","',indate,'"); target="_self" onMouseOut=window.status=""; onMouseOver=window.status="Calendar";return true;><span id="alendar">date<\/span><\/a>  <\/p>');
    sb.append('<p><span></span></p>');
    /*
    sb.append('<p><span>送货速度：<\/span>');    
    sb.append('<span id="img_speed_5" onclick="chk_speed(5)" onmousemove ="onmovechangestar_speed(5)" class="off"><\/span>');    
    sb.append('<span id="img_speed_4" onclick="chk_speed(4)" onmousemove ="onmovechangestar_speed(4)" class="off"><\/span>');
    sb.append('<span id="img_speed_3" onclick="chk_speed(3)" onmousemove ="onmovechangestar_speed(3)" class="off"><\/span>');
    sb.append('<span id="img_speed_2" onclick="chk_speed(2)" onmousemove ="onmovechangestar_speed(2)" class="off"><\/span>');
    sb.append('<span id="img_speed_1" onclick="chk_speed(1)" onmousemove ="onmovechangestar_speed(1)" class="off"><\/span>');
    sb.append('<span id="div_speed_info"><\/span><input type="hidden" value="0" id="input_speed" name="input_speed"\/><\/p>');
    
    sb.append(' <p><span>送货员的服务态度：<\/span><span id="img_score_5" onclick="chk_sock(5)" onmousemove ="onmovechangestar(5)" class="off"><\/span>');
    sb.append('<span id="img_score_4" onclick="chk_sock(4)" onmousemove ="onmovechangestar(4)" class="off"><\/span>');
    sb.append('<span id="img_score_3" onclick="chk_sock(3)" onmousemove ="onmovechangestar(3)" class="off"><\/span>');
    sb.append('<span id="img_score_2" onclick="chk_sock(2)" onmousemove ="onmovechangestar(2)" class="off"><\/span>');
    sb.append('<span  id="img_score_1" onclick="chk_sock(1)" onmousemove ="onmovechangestar(1)"  class="off"><\/span>');
    sb.append(' <span  id="div_score_info"><\/span><input type="hidden" value="0" id="input_score" name="input_score"\/><\/p> ');
    
    
     sb.append('<p><span>商品外包装：<\/span>');
     sb.append('<span id="img_package_5" onclick="chk_sock_package(5)" onmousemove ="onmovechangestar_package(5)" class="off"><\/span>');
     sb.append('<span id="img_package_4" onclick="chk_sock_package(4)" onmousemove ="onmovechangestar_package(4)" class="off"><\/span>');
     sb.append('<span id="img_package_3" onclick="chk_sock_package(3)" onmousemove ="onmovechangestar_package(3)" class="off"><\/span>');
     sb.append('<span id="img_package_2" onclick="chk_sock_package(2)" onmousemove ="onmovechangestar_package(2)" class="off"><\/span>');
     sb.append('<span id="img_package_1" onclick="chk_sock_package(1)" onmousemove ="onmovechangestar_package(1)" class="off"><\/span>');
     sb.append(' <span  id="div_package_info"><\/span><input type="hidden" value="0" id="input_package" name="input_score"\/><\/p> ');
    sb.append('<p class="text02"><span>其他意见建议：<\/span><textarea name="" id="receive_review_content" onclick="shownull()" onblur="showword()"  maxLength="200">最多允许输入200个汉字<\/textarea><span class="hint" id="receive_input_warn" style="visibility:hidden">字数超过200字，请重新填写。<\/span><\/p>');
    */
    sb.append('<div class="clear"><\/div>');
    sb.append(' <div class="myddorder_popup_btn"><button name="submit" onclick="javascritpt:postDateDetail_Evaluation(\'',orderid,'\',\'',succeed_order_num,'\',\'',receiver_city_id,'\');">提 交<\/button><\/div>');
    sb.append('<\/div> ');
    sb.append('<\/div>');
    sb.append('<\/div>');
        
    return sb.getString();


}

function postDateDetail_Evaluation(Id,succeed_order_num,receiver_city_id)
{
 var speed="0";
  var attitude="0";
  var package_quality="0";
  var other_review="0";
  
  /*
  if(document.getElementById("input_speed").value!="0")
  {
      switch(document.getElementById("input_speed").value)
      {
        case "5":  //非常差、挺差、一般、还好吧、很好
        speed="1";
        break;
         case "4":  //非常差、挺差、一般、还好吧、很好
        speed="2";
        break;
         case "3":  //非常差、挺差、一般、还好吧、很好
        speed="3";
        break;
         case "2":  //非常差、挺差、一般、还好吧、很好
        speed="4";
        break;
         case "1":  //非常差、挺差、一般、还好吧、很好
        speed="5";
        break;
        default:
        speed="0";
        break;        
      }
  }
  
  if(document.getElementById("input_score").value!="0")
  {
      switch(document.getElementById("input_score").value)
      {
        case "5":  //非常差、挺差、一般、还好吧、很好
        attitude="1";
        break;
         case "4":  //非常差、挺差、一般、还好吧、很好
        attitude="2";
        break;
         case "3":  //非常差、挺差、一般、还好吧、很好
        attitude="3";
        break;
         case "2":  //非常差、挺差、一般、还好吧、很好
        attitude="4";
        break;
         case "1":  //非常差、挺差、一般、还好吧、很好
        attitude="5";
        break;
        default:
        attitude="0";
        break;        
      }
  }
  
  //alert("taidu"+attitude);
  
    if(document.getElementById("input_package").value!="0")
    {
         switch(document.getElementById("input_package").value)
          {
            case "5": //非常不满意、不满意、一般、满意、非常满意
            package_quality="1";
            break;
             case "4":  
            package_quality="2";
            break;
             case "3":  
            package_quality="3";
            break;
             case "2": 
            package_quality="4";
            break;
             case "1": 
            package_quality="5";
            break;
            default:
            package_quality="0";
            break;        
          }    
    
    }
    
   // alert("baozhuang"+package_quality);  
  
  if(document.getElementById("receive_review_content").value==""||document.getElementById("receive_review_content").value=="最多允许输入200个汉字")
  {
     other_review="0";   
  }
  else if(document.getElementById("receive_review_content").value.length>200)
    {
      document.getElementById("receive_input_warn").innerHTML="字数超过200字，请重新填写。";      
      document.getElementById("receive_input_warn").style.visibility="visible";   
      
//       other_review=document.getElementById("receive_review_content").value;       
//       alert("文本框内容超过 了 200！");       
//       alert(other_review);      
      return;
    }
    else
    {
       document.getElementById("receive_input_warn").style.visibility="hidden";        
       other_review=document.getElementById("receive_review_content").value.encodeHtml().trim();
//       alert(other_review);       
//       alert("文本框有内容， 内容没有超过 了 200！");
//       return;
    }
    ///
    */
    orderid = Id;
    
    //var indate =  document.getElementById("InDate").value;    
    
//    var indate =jQuery("#InDate").val();      

    var outputDataUrl = "./outputData.aspx";

    
    var myurl = outputDataUrl;
         		    
    var pars = "";	   	  
   
//   if(symbol==0)
//   {
   
       //var aAjax = XMLHttp._sendRequest('GET', myurl, '', true, "text/xml", renderFun);
       
       //jquery
     jQuery.get(myurl,{modify:"true",Dtype:"callback_Evaluation",from:"detail",Id:Id,num:succeed_order_num,cityid:receiver_city_id,d:new Date(),att:attitude,spe:speed,pac:package_quality,rev:escape(other_review)},
     function(data)
                {
                  
                   var tex = data;	        
                    if(tex == "") return;                    
                    //var lin =  document.getElementById("tag_box");
                    var lin =  jQuery("#tag_box").get(0); 
                    
                    if(tex !="error" && tex !="ok")
                    {
                                            
                        jQuery(lin).html(surveyWindow_detail_shouhuo(tex));
                        
                        new dragObject(lin, "handle", null, null, null, null, null, false);
                       // loadData('order',comparameters);
                        lin.style.display="block";
                        //windowMoveToCenter();
                        windowMoveToCenterfororderlistsurvey();
                    }
                    else
                    {
                        var repstr ="感谢您的反馈，此订单积分将于15天后记入您的帐户。"
                        if(tex == "error") repstr = "提交失败，请稍候再试！";
                        
                                             
                        jQuery(lin).html(callEdJS_detail_Evaluation(orderid,repstr));
                        
                        
                        new dragObject(lin, "handle", null, null, null, null, null, false);  
                        lin.style.display="block";
                        //loadData('order',comparameters);
                    }
                  
                   
                }
     );

} 

function callEdJS_detail_Evaluation(orderid,text)
{
     var sb = new StringBuilder('<div id="e1" class="myddorder_popup_wrap">');
     
     sb.append('<div id="handle" class="myddorder_popup">');
     
      sb.append('<div class="myddorder_popup_title">');
      
      sb.append('<h2>订单 ',orderid,' 收货反馈</h2><a href="javascript:hidden();refreshBen_ddd();" class="close" title="关闭">关闭</a>');
      
      sb.append('</div>');
      
      sb.append('<div class="myddorder_popup_main">');
      
      sb.append('<h3 class="icon_success status2"><i></i><span>提交成功</span></h3>');
      sb.append('<p class="tips">温馨提示：此订单的积分将在15天退换货期后计入您的帐户。</p>');
      
      sb.append('<div class="myddorder_popup_btn"><button onclick="javascript:hidden_for_detail();refreshBen_ddd();writeProductsComm('+orderid+')">写评价赚积分</button></div>');
      
     
     
     
      sb.append('</div>');
       sb.append('</div>');
        sb.append('</div>');
        
     
     return sb.getString();   


}

function hidden_for_detail()
{  
    var lin = document.getElementById("tag_box");
    if(lin)lin.style.display="none";
}

//收货评价 end
